import {
    Entity,
    PrimaryGeneratedColumn,
    Column,
    BeforeInsert
} from 'typeorm';
import * as bcrypt from 'bcryptjs'

@Entity('im_chat_users') // 指定表名称为 'im_chat_users'
export class ChatUsers {

    @PrimaryGeneratedColumn({ comment: '自增主键 主键id', })
    id: string;
    @Column({ comment: '姓名', type: 'varchar', name: 'name', length: 50, })
    name: string;
    @Column({ comment: '用户id', })
    user_id: string;
    @Column({ comment: '密码', type: 'varchar', name: 'password', length: 50 })
    password: string;
    @Column({ comment: '手机号', length: 20 })
    phone: string;
    @Column({ comment: '邮箱', nullable: true, length: 100 })
    email: string;
}



